Identifying errors in algorithms
![Alt text](../7.4 Standard methods of solution/image.png)
Identifying errors in algorithms
- Use a trace table and the test data 400, 800, 190, 170, 300, 110, 600, 150, 130, 900 to record another dry run of the highest and lowest number.
A ← 0
B ← 0
C ← 100
OUTPUT "Enter your ten values"
REPEAT
INPUT X
IF X > B
THEN B←X
ENDIF
IF X < C
THEN C←X
ENDIF
A ← A + 1
UNTIL A = 10
OUTPUT B, C
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15